package com.tsmti.basicdata.service.impl;

import com.tsmti.core.common.service.impl.BaseServiceImpl;
import com.tsmti.basicdata.entity.SysLog;
import com.tsmti.basicdata.service.SysLogService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Package：com.tsmti.lab.service.impl
 * @Class：SysLogServiceImpl
 * @Description： TODO
 * @Author：dcd
 * @Date：Created in 2018/8/22 上午11:05
 * @Company:
 * @Version：
 * @Modified By:
 */
@Service("sysLogService")
public class SysLogServiceImpl extends BaseServiceImpl<SysLog> implements SysLogService {
    @Override
    public List<SysLog> getNurseRecord(String tableName,String tableId,String funName,String orgId) {
        return findByHql("from SysLog where table_Name=? and table_Pid=? and result=1 and fun_Name=? and orgid =? and (delflag = 0 or delflag is null)",tableName, tableId,funName,orgId);
    }
}
